package com.jf.test.mvvm

import com.fawvw.vehice.netlib.entity.RespEntity
import retrofit2.http.*

/**
 * @Class: MainAcService
 * @Description:
 * @author: github.com/jackyflame
 * @Date: 2021/3/12
 */
interface MainAcService {

    @GET
    suspend fun <T> httpGet(@Url url: String, @QueryMap map: Map<String, Any>): RespEntity<T>

    @POST
    suspend fun <T> httpPost(@Url url: String, @FieldMap map: Map<String, Any>): RespEntity<T>


    @GET(NetConst.api_getSearchHistory)
    suspend fun getHistory(@QueryMap map: Map<String, Any>?): RespEntity<List<SearchHistoryVo>>
}